<?php 
		$user=$session->read('User');
		$colleageid=$session->read("colleageid");
?>
<div class="right_side_operate_area">

	<div class="right_side_title left">
		<h2>
			<?php 
					$colleagename=$session->read("colleagename");
					echo $html->link($colleagename,"/colleages/showcolleageinfo/".$colleageid);
			?>
		</h2>
		<div class="clear"></div>
	</div>
	
    <div class="right item_add_btn">
    <?php 
    	if($form->value('CgAptitude.id'))
    	{
    		$str_title=__("Edit",true);
		}
		else
		{
			$str_title=__("Add",true);
		}
		echo $html->link(__("Cancel",true).$str_title,"/colleages/aptitudes/");
    ?>
    </div>
    <div class="clear"></div>
    
</div>


<div class="right_side_scollbar">
    <div class="detail_info_panel">
    
    	<?php echo $form -> create('cgaptitude', array('url' => '/colleages/editaptitude/','enctype'=>'multipart/form-data','type'=> 'post','onsubmit'=>'return checksave()') ); ?>
   		<div class="details_item_line">
		      <div class="details_item">
			      <div class="form_left_title left">资质名称：</div>
			      <div class="form_right_e_input left"><?php echo $form->text('CgAptitude.name');?></div>
			       <div id='namemessage' style='display:none;' class="error_message">请填写资质名称</div>
		      </div>
		</div>
		
	   <!--专利图片 开始-->
       <div class="details_item_line">
             <div class="details_item">
                <div class="form_left_title left">资质图片：</div>
                <div class="form_right_e_input left">
                <?php 
		                if(!empty($photo))
		                {
			                $photoimg=$photo["file_path"];
			                if($photoimg)
			                {
			                	echo $html->image("/".$photoimg,array("width"=>"200px","height"=>"80px")).'<br/>';
			                }
		                }
                ?>
                <input type="file" name="AptitudePicture[]" />
                </div>
       		</div>
       	</div>
       <!--专利图片 结束-->
       
       <div class="details_item_line">
	      <div class="details_item">
		      <div class="form_left_title left">资质描述：</div>
		      <div class="form_right_e_input left"><?php echo $form->textarea('CgAptitude.describe',array('class' => 'form_textarea'));?></div>
	      </div>
		</div>
		
	  <div class="details_item_line">
			<div class="details_item">
					<div class="form_left_title left"></div>
			        <div class="form_add_submit left">
			        	<?php echo $form->submit(__('Save',true), array("id"=>"addactive","name"=>"submit","class"=>"buttom","div"=>false));  ?>
			            <?php echo $form->hidden('CgAptitude.colleage_id',array("value"=>$colleageid)) ;?>
			        	<?php echo $form->hidden('CgAptitude.id') ?>
			        </div>
			</div>
	  </div>
   
    </div>
</div>